package com.news.news.dao;

import com.news.news.modle.*;
import com.news.news.modle.System;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsDetailDao {

    News findNewsByid(Integer id);


    void commentSent(Comment comment);

    List<Comment> findComments(int id);

    void addCollect(@Param("newsid") Integer newsid,@Param("newsName")  String newsName,@Param("userid")  Integer userid);

    void deleteCollect(@Param("userid") Integer userid, @Param("newsid")Integer id);
}
